﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Robotics.Race
{
    public class TouchRule : Rule
    {
        public override void Apply( Car car )
        {
            if (car.Environment.Touch != null && car.Environment.Touch.Value && car.Speed < 0)
            {
                car.Speed = 0;
            }
        }
    }
}
